package com.lcm.openapi.common.models.api;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 返回码实现类
 * @author: lcm
 * @date: 2021/12/13 10:59
 */
@Getter
@AllArgsConstructor
public enum ResultCode implements IResultCode {

	SUCCESS(200, "操作成功" ,1000001),
	ERROR(500, "服务异常" ,1000002),
	PARAMETER_NOT_FOUND(500 ,"参数缺失" ,1000003);

	/**
	 * 状态码
	 */
	final int code;

	/**
	 * 消息内容
	 */
	final String msg;

	/**
	 * 消息码
	 */
	final int msgCode;
}
